import service from "../utils/axios";

//首页-导航
export function nav_data ( obj = {}){
    return service.get('/api/index/nav' , {params : obj})
}

//首页-推荐
export function goodlist ( obj = {}){
    return service.get('/api/index/goodlist' , {params : obj})
}

//分类-一级
export function catestair ( obj = {}){
    return service.get('/api/category/list' , {params : obj})
}

//分类-二级
export function catesecond ( obj = {}){
    return service.get('/api/category/subcate' , {params : obj})
}

//所有商品分类搜索
export function searchshop ( obj = {}){
    return service.get('/api/good/list' , {params : obj})
}
//所有商品热门搜索
export function hotsearch ( obj = {}){
    return service.get('/api/good/hotsearch' , {params : obj})
}
